﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using TravelLink.Common;

namespace TravelLink.ScheduleTasks.ServiceHost {
    class Program {
        static void Main(string[] args) {
           // var datetime = DateTime.Now;
           //datetime= datetime.AddDays(90);
           //Console.WriteLine(datetime.ToShortDateString());
           System.ServiceModel.ServiceHost mailSvcHost = null;
           try {
               mailSvcHost = new System.ServiceModel.ServiceHost(typeof(TravelLink.ScheduleTasks.Service.MailSvc));
               mailSvcHost.Open();
               LogWriter.Info("TravelLinkDaily Service启动成功!");
               Console.ReadLine();
           } catch (Exception ex) {
               LogWriter.Error("服务启动失败!", ex);
               Console.ReadLine();
           }
        }
    }
}
